import {IPageResponse, IResponse} from "@/common/common";
import request from "@/common/request";
import {ILog} from "@/common/interfaces/syslog";

export async function getProperty(params: any): Promise<IResponse> {
  return request({
    url: `/root/getProperty`,
    ignoreAuth: true,
    method: "GET",
    params,
  });
}

export async function getSysLog(params: any): Promise<IPageResponse<ILog>> {
  return request({
    url: `/root/sysLog`,
    ignoreAuth: false,
    method: "GET",
    params,
  });
}
